.class Lcom/waiqin365/lightapp/product/cb;
.super Landroid/os/Handler;


# instance fields
.field a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/product/ProductSearchActivityNew;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/product/cb;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/cb;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/product/ProductSearchActivityNew;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/ProductSearchActivityNew;->dismissProgressDialog()V

    iget v1, p1, Landroid/os/Message;->what:I

    packed-switch v1, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/product/b/a/m;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/product/b/a/m;->b()Z

    move-result v2

    if-eqz v2, :cond_2

    const-string/jumbo v2, "1"

    iget-object v3, v1, Lcom/waiqin365/lightapp/product/b/a/m;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    iget v2, v1, Lcom/waiqin365/lightapp/product/b/a/m;->e:I

    iget v3, v1, Lcom/waiqin365/lightapp/product/b/a/m;->f:I

    if-ne v2, v3, :cond_1

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSearchActivityNew;->d(Lcom/waiqin365/lightapp/product/ProductSearchActivityNew;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    :goto_1
    invoke-virtual {v1}, Lcom/waiqin365/lightapp/product/b/a/m;->a()Z

    move-result v2

    iget v3, v1, Lcom/waiqin365/lightapp/product/b/a/m;->d:I

    iget-object v1, v1, Lcom/waiqin365/lightapp/product/b/a/m;->j:Ljava/util/List;

    invoke-static {v0, v2, v3, v1}, Lcom/waiqin365/lightapp/product/ProductSearchActivityNew;->a(Lcom/waiqin365/lightapp/product/ProductSearchActivityNew;ZILjava/util/List;)V

    goto :goto_0

    :cond_1
    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSearchActivityNew;->d(Lcom/waiqin365/lightapp/product/ProductSearchActivityNew;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->g()V

    goto :goto_1

    :cond_2
    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSearchActivityNew;->b(Lcom/waiqin365/lightapp/product/ProductSearchActivityNew;)Lcom/waiqin365/lightapp/product/d/g;

    move-result-object v2

    iget-object v2, v2, Lcom/waiqin365/lightapp/product/d/g;->h:Lcom/waiqin365/lightapp/product/d/j;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSearchActivityNew;->b(Lcom/waiqin365/lightapp/product/ProductSearchActivityNew;)Lcom/waiqin365/lightapp/product/d/g;

    move-result-object v4

    iget-object v4, v4, Lcom/waiqin365/lightapp/product/d/g;->h:Lcom/waiqin365/lightapp/product/d/j;

    iget-object v4, v4, Lcom/waiqin365/lightapp/product/d/j;->g:Ljava/lang/String;

    const/4 v5, 0x1

    invoke-static {v4, v5}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;I)I

    move-result v4

    add-int/lit8 v4, v4, -0x1

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string/jumbo v4, ""

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lcom/waiqin365/lightapp/product/d/j;->g:Ljava/lang/String;

    iget-object v1, v1, Lcom/waiqin365/lightapp/product/b/a/m;->c:Ljava/lang/String;

    invoke-static {v1}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_3

    const v1, 0x7f08013b

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/product/ProductSearchActivityNew;->getString(I)Ljava/lang/String;

    move-result-object v1

    :cond_3
    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/product/ProductSearchActivityNew;->showToast(Ljava/lang/String;)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x3f4
        :pswitch_0
    .end packed-switch
.end method
